import { createRouter, createWebHistory } from "vue-router";
const routes = [
  {
    path: '/',
    name: 'index',
    redirect: '/wall',
    component: () => import('../views/BoardIndex.vue'),
    children: [
      {
        path: 'wall',
        component: () => import('../views/MessageBoard.vue')
      }
    ]
  }
]
const router = createRouter({
  history: createWebHistory(),
  routes,
})
export default router;